From a2fcc6bd3bb1d25e72dcb758bef6a9b43e958ae2 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 5 Apr 2010 13:04:34 +0000 Subject: [PATCH] Add hard error for Lowrance USR V3 files. --- lowranceusr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lowranceusr.c b/lowranceusr.c index 9fc1a8766..90f2cf362 100644 --- a/lowranceusr.c +++ b/lowranceusr.c @@ -620,6 +620,10 @@ data_read(void) if (MajorVersion < 2) { fatal(MYNAME ": input file is from an old version of the USR file and is not supported\n"); } + if (MajorVersion > 3) { + fatal(MYNAME ": input file version %d is not supported\n", + MajorVersion); + } NumWaypoints = gbfgetint16(file_in); -- 2.30.2